<?php

ob_start();

require "header.php";
require "display_functions.php";

if (isset($_GET['kn'])) $kn = $_GET['kn'];
else $kn = 0;

if (isset($_GET['id'])) $id = $_GET['id'];
else $id = 0;

$playerImage = $id;
		
if (!(file_exists("people/". $playerImage . ".png")))
{
	$playerImage = "noImage";
}	

$playerDetails = mysql_fetch_array($queryResult);

?>

<tr>
	<th><?php echo(getPlayerName($id)); ?></th>
</tr>
<tr>
	<td style="text-align:center;">
		<table style="width:100%">
			<tr>
				<td style="width:64px"><img class="bigShipImage" src="people/<?php echo($playerImage);?>.png" /></td>
				<td style="width:25%"><a href="pkills.php?id=<?php echo($id); ?>"><img border="0" src="images/kills.png" /><br/>kills</a></td>
				<td style="width:25%"><a href="plosses.php?id=<?php echo($id); ?>"><img border="0" src="images/losses.png" /><br/>losses</a></td>
				<td style="width:25%"><a href="ckills.php?id=<?php echo($playerDetails['corpID']);?>"><img border="0" src="images/corp.png" /><br />corp</a></td>
				<td style="width:25%"><img border="0" src="images/alliance.png"  /><br />alliance</td>
			</tr>
		</table>
	</td>			
</tr>
<tr>
	<th>Losses</th>
</tr>

<?php 

drawPlayerLosses($id, 10, $kn); 

require "footer.php";

ob_end_flush();

?>